package com.echartsdata.Mapper;


import com.echartsdata.Entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/***
 * 查询用户
 */
@Mapper
public interface UserMapper {
    @Select("SELECT * FROM user WHERE username = #{username}")
    public User get_user(String username);

    //新增用户
    @Insert("INSERT INTO user (username, password) VALUES (#{username}, #{password})")
    public void save(String username,String password);
}
